<?php
namespace haibao\cms\model\data;

class Video extends Base{
    const STATUS_ENABLE = 1;
    const STATUS_DELETE = 0;
    
    const PUBLISHED_OK = 1;
    const PUBLISHED_NO = 0;
    const FOCUSPICSTATE_NO = 0;
    const FOCUSPICSTATE_OK = 1;
    const FOCUSPICSTATE_ERROR = 2;
    /**
     * 分类Id
     */
    public $CategoryId;
    /**
     * 标题
     */
    public $Title;
    /**
     * 描述
     */
    public $Description;
    /**
     * 图片ID
     */
    public $PicId;
    /**
     * 封面图片Id
     */
    public $SurfacePicId;
    /**
     * 视频期数
     */
    public $VolNum;
    /**
     * 导图url
     */
    public $ProPicUrl;
    /**
     * 视频URL
     */
    public $VideoUrl;
    /**
     * H5Url
     */
    public $VideoUrlForH5;
    /**
     * 详情url
     */
    public $DetailUrl;
    /**
     * 来源
     */
    public $Source;
    /**
     * 发布状态
     */
    public $Published;
    /**
     * 发布时间
     */
    public $PublishDate;
    /**
     * 状态
     */
    public $Status;
    /**
     * 最后修改时间
     */
    public $LastModifyTime;
    /**
     * 最后修改用户
     */
    public $LastModifyUser;
    
    public $VideoPropertyModel;
    
    public $VideorelTagModel;
    
    public $Category;
    
    public $Tags;
    
    public $Property;
    
    public $UserName;
    public $PicUrl;
    public $Image;
    
    /**
     * 访问URL
     */
    public $AccessUrl;
    
    /**
     * public title
     */
    public $PublicTitle;
    
    public $HighLightTitle;
    public $HighLightDescription;
    /**
     * 专题id
     */
    public $FeatureId;
    
    public $FocusPic;
    
    public $FocusVideo;
    
    public $FocusPicState = 0;
    
    /**
     *上传视频 
     */
    public $videoFile = array();
    
    /**
     * 方图url
     */
    public $SquarePicUrl;
    
    public function __construct(){
        parent::__construct();
        $this->intField('CategoryId', 'CategoryId', true);
        $this->stringField('Title', 'Title', true);
        $this->stringField('Description', 'Description');
        $this->intField('PicId', 'PicId', true);
        $this->intField('SurfacePicId', 'SurfacePicId');
        $this->intField('VolNum', 'VolNum');
        $this->stringField('VideoUrl', 'VideoUrl', true);
        $this->stringField('VideoUrlForH5', 'VideoUrlForH5');
        $this->stringField('DetailUrl', 'DetailUrl');
        $this->stringField('Source', 'Source', true);
        $this->dateField('PublishDate', 'PublishDate', true);
        $this->intField('Published', 'Published', true);
        $this->intField('Status', 'Status', true);
        $this->dateField('LastModifyTime', 'LastModifyTime', true);
        $this->intField('LastModifyUser', 'LastModifyUser', true);
        $this->stringField('SquarePicUrl', 'SquarePicUrl');
        $this->stringField('ProPicUrl', 'ProPicUrl');
        $this->intField('FeatureId', 'FeatureId');
        $this->stringField('FocusPic', 'FocusPic');
        $this->stringField('FocusVideo', 'FocusVideo');
        $this->intField('FocusPicState', 'FocusPicState');
        
        $this->setTableName('Video');
    }
}